package com.dinzeer.resonantisshelomoh.se;

import com.dinzeer.legendreliclib.lib.util.slashblade.AbstractSpecialEffect;
import mods.flammpfeil.slashblade.event.SlashBladeEvent;
import net.minecraft.world.effect.MobEffectInstance;
import net.minecraft.world.effect.MobEffects;
import net.minecraft.world.entity.LivingEntity;

public class Theinescapableguilt extends AbstractSpecialEffect {
    public Theinescapableguilt() {
        super(17);
    }


    @Override
    public void handleUpdate(SlashBladeEvent.UpdateEvent event, LivingEntity attacker) {
        super.handleUpdate(event, attacker);
        attacker.addEffect(new MobEffectInstance(MobEffects.DAMAGE_BOOST, 300, 2));
        attacker.addEffect(new MobEffectInstance(MobEffects.DAMAGE_RESISTANCE, 300, 2));
        if (!attacker.hasEffect(MobEffects.REGENERATION)){
            attacker.addEffect(new MobEffectInstance(MobEffects.REGENERATION, 300, 2));
        }
        attacker.addEffect(new MobEffectInstance(MobEffects.MOVEMENT_SPEED, 300, 2));
        attacker.addEffect(new MobEffectInstance(MobEffects.WITHER, 300, 2));
        attacker.addEffect(new MobEffectInstance(MobEffects.GLOWING, 300, 2));
    }
}
